﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CqusInfo.RAL.Infomation
{
    /// <summary>
    /// tb_Information 信息表
    /// </summary>
    public class InfomationModel
    {
        public string c_vc_iId { get; set; }
        public string c_vc_userName { get; set; }
        public string c_vc_itId { get; set; }
        public string c_ntx_content { get; set; }
        public string c_vc_title { get; set; }
        public string c_tx_URL { get; set; }
        public DateTime c_dt_dateTime { get; set; }
        public Int32 c_i_status { get; set; }
        public Int32 c_i_hot { get; set; }
        public string c_nvc_from { get; set; }
        public bool c_b_isDel { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public InfomationModel()
        {

        }

        /// <summary>
        /// 有参构造函数
        /// </summary>
        /// <param name="iId">tb_Infomation ID </param>
        /// <param name="itId">tb_Infomation_Type ID </param>
        /// <param name="userName">用户名</param>
        /// <param name="content">内容</param>
        /// <param name="title">标题</param>
        /// <param name="URL">图片路径</param>
        /// <param name="dateTime">发表日期</param>
        /// <param name="status">资讯权重（0：普通资讯，1：热点资讯2：头条资讯）</param>
        /// <param name="hot">点击量</param>
        /// <param name="from">来源</param>
        /// <param name="isDel">是否删除</param>
        public InfomationModel(string iId, string itId, string userName, string content, string title, string URL, DateTime dateTime, Int32 status, Int32 hot, string from, bool isDel)
        {
            this.c_vc_iId = iId;
            this.c_vc_userName = userName;
            this.c_vc_itId = itId;
            this.c_ntx_content = content;
            this.c_vc_title = title;
            this.c_tx_URL = URL;
            this.c_dt_dateTime = dateTime;
            this.c_i_status = status;
            this.c_i_hot = hot;
            this.c_nvc_from = from;
            this.c_b_isDel = isDel;
        }
    }
}
